/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evans.springcloud.provider.dept.service;

import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 *
 * @author wangsunjie
 */
@Service
public class DeptServiceImpl implements DeptService {
    
    
    @Override
    public boolean addDept(String dept) {
        return true;
    }

    @Override
    public String queryDeptByID(String id) {
        return "DEPTENTITY-Hystrix-8004";
    }

    @Override
    public List<String> queryAll() {
        List<String> list = new ArrayList<>();
        list.add("DEPTENTITY-Hystrix-8004");
        list.add("DEPTENTITYHystrix-18004");
        return list;
    }
    
}
